package net.zjitc.service.impl;

import net.zjitc.dao.GoodsDao;
import net.zjitc.dao.impl.GoodsDaoImpl;
import net.zjitc.domain.Goods;
import net.zjitc.domain.User;
import net.zjitc.service.GoodsService;

import java.util.List;

public class GoodsServiceImpl implements GoodsService {
    GoodsDao goodsDao = new GoodsDaoImpl();
    @Override
    public List<Goods> findALL() {
        return goodsDao.findALL();
    }

    @Override
    public Goods findById(int id) {
        return goodsDao.findById(id);
    }

    @Override
    public int add(Goods goods) {
        return goodsDao.add(goods);
    }

    @Override
    public int update(Goods goods) {
        return goodsDao.update(goods);
    }

    @Override
    public int delete(int id) {
        return goodsDao.delete(id);
    }


}
